/**
 * Created by Administrator on 2017/7/11.
 */
import {HeroDetailComponent} from "app/hero-detail/hero-detail.component";
import {DashboardComponent} from "./dashboard/dashboard.component";
import {Routes} from "@angular/router";
import {HeroesComponent} from "./heroes/heroes.component";

export const routers:Routes = [
  {
    path: 'heroes',
    component: HeroesComponent
  },
  {
    path: 'dashboard',
    component: DashboardComponent
  }, {
    path: '',
    redirectTo: '/dashboard',
    pathMatch: 'full'
  },{
    path:'detail/:id',
    component:HeroDetailComponent
  }
]
